function createInput(constraints,variables)
clear p1 p2 p3 p4 xC1 xC2
clf
% f = figure('Position', [80 80 800 600], 'Menubar', 'none', 'Name', 'FYP GUI', 'Color', 'white')
uP = uipanel('FontSize',12,...
    'BackgroundColor','white',...
    'Position',[.02 .02 .96 .80]);

p1=50;
p2=(50*constraints);
p3=10;
p4=20;

% x1, x2...xn
for i=1:1:variables
%     xC=['xC' num2str(i)];
%     xnC=['xnC' num2str(i)];
    xC=uicontrol('Parent',uP,'style', 'text', 'position', [p1 p2 p3 p4], 'String', 'x', 'fontSize', 14);
    xnC=uicontrol('Parent',uP,'style', 'text', 'position', [p1+10 p2-7 p3 p4], 'String', i, 'fontSize', 10);
    p1=p1+80;
%     disp(eval(['a' num2str(i) '= i;']));
%     disp(eval('load A_' num2str(i) ));
end

p1=80;
p2=70 + (50*constraints);
p3=40;
p4=30;

% Objective
for i=1:1:variables
    uicontrol('style', 'edit', 'position', [p1 p2 p3 p4]);
    %     uicontrol('Parent',f,'style', 'edit', 'position', [.90 .98 .40 .30]);
    p1=p1+80;
end


p1=50;
p2=20;

for i=1:1:variables
    for j=1:1:constraints
        uicontrol('style', 'edit', 'position', [p1 p2 p3 p4]);
        p2=p2+50;
    end
    p2=20;
    p1=p1+80;
end

p2=20;
for i=1:1:constraints
    uicontrol('style', 'popup', 'position', [p1 p2 p3 p4], 'String', '>=|<=|=', 'fontSize', 10);
    p2=p2+50;
end

p1=p1+80;
p2=20;
for i=1:1:constraints
    uicontrol('style', 'edit', 'position', [p1 p2 p3 p4]);
    p2=p2+50;
end